//
//  AddImgCell.h
//  efairy
//
//  Created by 李锋 on 2019/3/4.
//  Copyright © 2019年 East. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
@class AddImgCell;
@protocol AddImgCellDelegate <NSObject>
@optional
- (void)matAddImgTCell:(AddImgCell *)cell collectionView:(UICollectionView *)collectionView delWithIndexPath:(NSIndexPath *)cIndexPath;
- (void)matAddImgTCell:(AddImgCell *)cell collectionView:(UICollectionView *)collectionView addWithIndexPath:(NSIndexPath *)cIndexPath;
@end
@class EFAMtcPubModel;
@class EFAAlarmPubModel;
@class EFADangerPubModel;
@class EFADevPubModel;
@interface AddImgCell : UITableViewCell

@property (strong, nonatomic)  UIView *titleUIView;
@property (strong, nonatomic)  UILabel *titleLabel;
@property (strong, nonatomic)  UICollectionView *collectionView;
//@property (strong, nonatomic)  NSLayoutConstraint *collectionViewHeight;
@property (strong, nonatomic)  UICollectionViewFlowLayout *layout;
@property (strong, nonatomic)  UIButton *submitBtn;
@property (weak, nonatomic) EFAMtcPubModel *model;
@property (weak, nonatomic) EFAAlarmPubModel *alarmModel;
@property (weak, nonatomic) EFADangerPubModel *dangerModel;
@property (weak, nonatomic) EFADevPubModel *devModel;
@property (weak, nonatomic) id<AddImgCellDelegate>delegate;
@property (copy, nonatomic) void(^submitBtnBlock) (void);
- (void)configViewWithMtcPubModel:(EFAMtcPubModel *)model;
@end



@interface AddImgCell (AlarmRelative)
- (void)configViewWithAlarmPubModel:(EFAAlarmPubModel *)model;
@end


@interface AddImgCell (DangerRelative)
- (void)configViewWithDangerPubModel:(EFADangerPubModel *)model;
@end

@interface AddImgCell (DeviceRelative)
- (void)configViewWithDevPubModel:(EFADevPubModel *)model;
@end

NS_ASSUME_NONNULL_END
